package com.dreamwhale.machinery.goods.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.dreamwhale.machinery.goods.entity.DriverInfo;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;

/**
 * <p>
 * 司机招聘 服务类
 * </p>
 *
 * @author Author
 * @since 2020-05-28
 */
public interface DriverInfoService extends IService<DriverInfo> {

    /**
     * 找驾驶员
     *
     * @param driverInfo
     * @return
     */
    int insertDriverInfos(DriverInfo driverInfo);

    /**
     * 查询驾驶员
     *
     * @param userId
     * @return
     */
    List<DriverInfo> selectDriverInfoMap(Integer userId);

    /**
     * 查询驾驶员
     *
     * @param
     * @return
     */
    List<DriverInfo> selectDriverInfos(Integer infoId);

    /**
     * 司机招聘发布详情
     *
     * @param infoId
     * @return
     */
    DriverInfo selectDriverInfoBytypeId(Integer infoId);

    /**
     * 查询司机招聘
     *
     * @param salaryMin
     * @param salaryMax
     * @param years
     * @param province
     * @param city
     * @param type
     * @param types
     * @return
     */
    List<DriverInfo> selectDriverInfoHome(Integer salaryMin, Integer salaryMax, Integer years, String province, String city, Integer type, Integer types, String title, String driveTypeId);
}
